
package rollinglogger;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;


public class RollingLogger {

public final static Logger logger = LogManager.getLogger(RollingLogger.class.getName());
    public static void main(String[] args) {
        int counter = 0;
        while(true)
            logger.error("Error #" + counter++);
    }
    
}
